﻿using System;
using DDDNorthWind.Core.Domain.Identity;

namespace DDDNorthWind.AC.Products.Domain.ValueObject
{
    public sealed class ProductId : IdentityKey<Guid>
    {
        public ProductId(Guid id)
        {
            Id = id;
        }

        public ProductId() { }


        public override Guid Id { get; protected set; }

        public override bool Equals(Guid other)
        {
            return Id.Equals(other);
        }
    }
}